<#include "/common/pagerForm.html">
<form rel="pagerForm" method="post" action="${rc.getContextPath()}/manage/inspectRecord/defectTopDetail">
 <input type="hidden" name="defectCode" value="${page.defectCode!''}">  
</form>
<div class="pageContent">
    <div class="panelBar">
        <ul class="toolBar">
            <@buttonRight menuCode="operation_add" labelKey="add.B" defalutName="导出excel">
            <li><a class="export" href="${rc.getContextPath()}/manage/inspectRecord/defectExportToExcel?defectCode=${page.defectCode!''}" target="dwzExport" targetType="navTab" title="<@label key='confirmexportToExcel.M'>确定要导出这些记录吗?</@label>"><span><@label key="exportToExcel.D">导出EXCEL</@label></span></a></li>
            </@buttonRight>
            <@buttonRight menuCode="service_view" labelKey="view.B" defalutName="详情">
            <li><a class="icon" target="dialog" mask="true" width="900" height="630" rel="viewInspectRecord"
            href="${rc.getContextPath()}/manage/inspectRecord/viewInspectRecord?id={inspectRecord_id}&navTabId=${navTabId!''}"><span><@label key="view.B">详情</@label></span></a></li></@buttonRight>
        </ul>
    </div>
    <table class="table" width="120%" layoutH="100">
        <thead>
            <tr>
                <th width="22"><input type="checkbox" group="ids" class="checkboxCtrl"></th>
                <th width="30"><@label key="serialNumber.C">序号</@label></th>
                <th width="100"><@label key='productionControlNum.C'>生产管理号</@label></th>
                <th width="100" ><@label key='productionOrderNum.C'>生产订单编号</@label></th>
                <th width="100"><@label key='materialCode.C'>物料编号</@label></th>
                <th width="100"><@label key='materialText.C'>物料描述</@label></th>
                <th width="80"><@label key='productionlotNum.C'>生产批次号</@label></th>
                <th width="80"><@label key='inspectUser.C'>检验人员</@label></th>
                <th width="80"><@label key='inspectDateTime.C'>点检时间</@label></th>
                <th width="100" ><@label key="workCenterCode.C">工作中心编号</@label></th>
                <th width="100" ><@label key="workCenterText.C">工作描述</@label></th>
                <th width="100" ><@label key="workUnitCode.C">作业单元编号</@label></th>
                <th width="100" ><@label key="workUnitText.C">作业单元描述</@label></th>
                <th width="80" ><@label key="defectDefine.C,quantity.C">缺陷数量</@label></th>
                <th width="80" ><@label key="attachment.C,quantity.C">附件数量</@label></th>
            </tr>
        </thead>
        <tbody>
        <#if page??><#if (page.data?size>0)> <#list page.data as inspectRecord>
            <tr target="inspectRecord_id" rel="${inspectRecord.id!''}">
                <td><input name="ids" value="${defect.defectCode!''}" type="checkbox"></td>
                <td>${page.startRow + inspectRecord_index}</td>
                <td>${inspectRecord.productionControlNum!''}</td>
                <td>${inspectRecord.productionOrderNum!''}</td>
                <td>${inspectRecord.materialCode!''}</td>
                <td>${inspectRecord.materialText!''}</td>
                <td>${inspectRecord.productionlotNum!''}</td>
                <td>${inspectRecord.createUser!''}</td>
                <td>${(inspectRecord.createDateTime?string("yyyy-MM-dd HH:mm:ss"))?if_exists}</td>
                <td>${inspectRecord.workcenterCode!''}</td>
                <td>${inspectRecord.workcenterText!''}</td>
                <td>${inspectRecord.workunitCode!''}</td>
                <td>${inspectRecord.workunitText!''}</td>
                <td>${inspectRecord.quantity!''}</td>
                <td>${inspectRecord.attachmentCount!''}</td>
            </tr>
        </#list>
        <#else>
        <tr target="inspectRecord_id">
                <td colspan="8" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        <#else>
        <tr target="inspectRecord_id">
                <td colspan="8" class="noData">======<@label key='noListData.C'>列表无数据</@label>=====</font></td>
        </tr>
        </#if>
        </tbody>
    </table>
        <#include "/common/dialogPanelBar.html">
</div>